package net.wanho.service;

import net.wanho.dto.UserDTO;
import net.wanho.dto.UserModifyPwdDTO;
import net.wanho.dto.UserRoleDTO;
import net.wanho.entity.UserInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import net.wanho.vo.PageVo;
import net.wanho.vo.UserVo;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
* @author Administrator
* @description 针对表【user_info(用户表)】的数据库操作Service
* @createDate 2025-05-05 02:08:26
*/
public interface UserInfoService extends IService<UserInfo> {

    PageVo<UserVo> getUserListPage(UserDTO userDTO, Integer pageNum, Integer pageSize);

    void saveUser(UserDTO userDTO);

    void updateUserById(Integer id);

    void removeUserBatchByIds(List<Integer> ids);

    void updatePwdById(Integer id);

    void assignRole(UserRoleDTO userRoleDTO);

    void modifyUserPwd(UserModifyPwdDTO userModifyPwdDTO);

    String modifyAvatar(Integer id, MultipartFile file);
}
